from typing import Optional, List

from pydantic import BaseModel, Field
from calc_manager.plugins_inner.csv_inner import CsvPlugin

class Parameter(BaseModel):
    k: int

class Result(BaseModel):
    r: float

def plugin(param: Parameter, csv_plugin: CsvPlugin) -> Result:
    print("df_head:")
    csv_plugin.print_df_head()
    print("df_info:")
    csv_plugin.print_df_info()
    print("finish:")
    return Result(r=param.k * 3 * csv_plugin.data)
